package com.zengzhi.nettyall.netty.encode.protobuf;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author xiejiawei
 * @Date 2021-04-18
 * @Time 11:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Message implements Serializable {

    private String content;

    private Date createTime;
    public static void main (String[] args){
        List<Integer> dbList = new ArrayList();
        dbList.add(2);
        dbList.add(3);
        List<Boolean> collect = dbList.stream().map(db -> !db.equals(2) && !db.equals(4)).collect(Collectors.toList());

    }
}
